package com.fun_ordering.components;

public class NotifyRes {
    private String code;
    private String message;

    public static NotifyRes success(){
        return new NotifyRes("SUCCESS","成功");
    }

    public static NotifyRes fail(){
        return new NotifyRes("FAIL","失败");
    }

    public NotifyRes(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
